<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>测试(展示用) -- 与业务无关</title>
</head>
<body>
<a href="index.html">返回</a>
<br>
    <table border="1">
        <tr>
           <th>id</th>
           <th>用户名</th>
           <th>创建时间</th>
           <th>更新时间</th>
            <th>状态</th>
           <th colspan="2">操作</th>
        </tr>
        <tr th:each="hero:${heroInfos}">
            <td th:text="${hero.id}"></td>
            <td th:text="${hero.username}"></td>
            <td th:text="${#dates.format(hero.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="${#dates.format(hero.updateTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="${hero.delete}==0?'正常':'已删除'"></td>
            <td><a th:href="@{/edit/{id}(id=${hero.id})}">修改</a></td>
            <td><a th:href="@{/delete/{id}(id=${hero.id})}">删除</a></td>
        </tr>
    </table>
</body>
</html>